package com.imooc.ecommerce.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息传递对象: SpringCloud stream + kafka/rocketmq
 * @author zhangshao
 * @since 2023/12/10 22:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QinyiMessage {

    private Integer id;

    private String projectName;

    private String org;

    private String author;

    private String version;

    /**
     * 返回一个默认的消息, 方便于使用
     * @return
     */
    public static QinyiMessage defaultMessage(){
        return new QinyiMessage(1,"e-commerce-stream-client","imooc.com","qinyi","1.0");
    }
}
